6ed3fa038aa6108497113acc2a3a6bbea18dd7de,examples/VerletPhysics_Cloth_3D/VerletPhysics_Cloth_3D.java,VerletPhysics_Cloth_3D,gizmo,#number#,164
Before Change
public void gizmo(float s){
beginShape(LINES);
stroke(255,0,0); vertex(0,0,0); vertex(s,0,0);
stroke(0,255,0); vertex(0,0,0); vertex(0,s,0);
stroke(0,0,255); vertex(0,0,0); vertex(0,0,s);
endShape();
}
After Change
PShape shp_aabb;
public void displayGizmo(float s){
if(shp_gizmo == null){
strokeWeight(2);
shp_gizmo = createShape();
shp_gizmo.beginShape(LINES);
shp_gizmo.stroke(255,0,0); shp_gizmo.vertex(0,0,0); shp_gizmo.vertex(s,0,0);
shp_gizmo.stroke(0,255,0); shp_gizmo.vertex(0,0,0); shp_gizmo.vertex(0,s,0);
shp_gizmo.stroke(0,0,255); shp_gizmo.vertex(0,0,0); shp_gizmo.vertex(0,0,s);
shp_gizmo.endShape();
}